<?php
$datetime = queryScalar('SELECT MAX(created) FROM archive WHERE subject=0', null);
$datetime = date_parse($datetime);
$datetime['month'] = queryScalar('SELECT name FROM month WHERE id=:id', array('id'=>$datetime['month']));
if($datetime['hour']<10) $datetime['hour']='0'.$datetime['hour'];
if($datetime['minute']<10) $datetime['minute']='0'.$datetime['minute'];
if($datetime['second']<10) $datetime['second']='0'.$datetime['second'];
$content['datetime'] = $datetime;
// $smarty->assign('datetime', $datetime);
$dt = queryScalar('SELECT MAX(created) FROM archive WHERE subject=1', null);
$dt = date_parse($dt);
$dt['month'] = queryScalar('SELECT name FROM month WHERE id=:id', array('id'=>$dt['month']));
if($dt['hour']<10) $dt['hour']='0'.$dt['hour'];
if($dt['minute']<10) $dt['minute']='0'.$dt['minute'];
if($dt['second']<10) $dt['second']='0'.$dt['second'];
$content['dt'] = $dt;
// $smarty->assign('dt', $dt);
$master['action'] = null;
$master['attributes'] = null;
$master['pageTitle'] = 'Statisztika';
// $smarty->append('master', $master);
?>